Replacement callback, row-based filtering, and revision exclusion#205
Replacement callback, row-based filtering, and revision exclusion#205drzraf wants to merge 21 commits intowp-cli:mainfrom
Conversation
Added --revision / --no-revision Added --callback Reroll wp-cli#104, wp-cli#128, wp-cli#184 Fixes wp-cli#125, wp-cli#127, wp-cli#142
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
Thanks for your PR! Would it be possible to split it up into 3 individual ones, one per new argument? That would make reviews much easier. There could also be one PS. Notice the lint failure |
I understand it's a significant diff on core code, but:
There is also at least one imperfection I'm aware of:
|
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
What do you think is left to do ? |
|
Just reviews at this point I think :-) We have a lot of open PRs right now that we'll go through ahead of the next release. |
Replacement callback & row-based filtering (include/exclude posts revisions)
--whereexpression has been a long requested feature (for more than 8 years)Added
--whereflag to precisely select rows aimed for replacementAdded
--revision/--no-revisionAdded
--callbackReroll of Feature: Call user function with --callback flag #104 (Dec 2018), Replacement callback & row-based filtering #128 (Sept 2019) (Feature: Call user function with --callback flag Feature: Call user function with --callback flag #104 and skip-revisions, select columns, callbacks = The forever reroll #184 (June 2023)
Fix Filter by post types and post status in post table #125 (Introduce
--whereflag) and Limit search-replace in DB --wp_db_id="wp_posts:1234" (New command parameter) #142 (--wp_db_id)Resolves Pass current
$coland$primary_keysdown to the SearchReplacer #127 (Callback access to current primary key & column)